[SDK][Subgraph] Implement staking utilities and GraphQL queries for staker#3440
Merged
portuu3 merged 16 commits intocontracts-v2from Aug 29, 2025
Merged
[SDK][Subgraph] Implement staking utilities and GraphQL queries for staker#3440portuu3 merged 16 commits intocontracts-v2from
portuu3 merged 16 commits intocontracts-v2from
Conversation
- Added `staking.py` to define GraphQL queries for fetching staker data. - Introduced `staking_utils.py` for utility functions to retrieve staker information and handle filtering. - Created unit tests in `test_staking_utils.py` to ensure functionality of staking utilities. - Developed TypeScript examples in `staking.ts` to demonstrate usage of staking utilities. - Implemented GraphQL queries in `staking.ts` for TypeScript SDK to interact with staker data.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
…l and fixtures in Human App
portuu3
requested changes
Jul 3, 2025
…te getOperators to use POLYGON_AMOY and some other stuff used for tests
portuu3
requested changes
Aug 6, 2025
- `amountStaked` to `stakedAmount` - `amountLocked` to `lockedAmount` - `amountWithdrawn` to `withdrawnAmount` - `amountSlashed` to `slashedAmount`
…ON_AMOY chain; clean up commented code
portuu3
requested changes
Aug 20, 2025
… setups and improving clarity
…rays instead of strings
portuu3
approved these changes
Aug 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue tracking
#3413
Context behind the change
Implement staking utilities and GraphQL queries for staker management
staking.pyto define GraphQL queries for fetching staker data.staking_utils.pyfor utility functions to retrieve staker information and handle filtering.test_staking_utils.pyto ensure functionality of staking utilities.staking.tsto demonstrate usage of staking utilities.staking.tsfor TypeScript SDK to interact with staker data.How has this been tested?
Release plan
Deploy new subgraph version and SDK
Potential risks; What to monitor; Rollback plan
Check if the new object is being created properly